<template>

    <el-card header='添加表访问权限'>
        <v-form-render ref='vFormRef' :form-json='formJson' :form-data='formData' :option-data='optionData' />
        <el-button type='primary' @click='submitForm'>Submit</el-button>
    </el-card>
</template>
<script lang="ts" setup>
import addFormJson from './add-form.json'
import { ref, reactive } from 'vue'



const formJson = reactive(addFormJson)
const formData = reactive({})
const optionData = reactive({})
const vFormRef = ref(null)

function submitForm() {
    console.log(formData)
}
</script>